package com.mapper;

import com.entity.Clazz;
import com.entity.ClazzExample;
import java.util.List;
import java.util.Map;

import com.page.PageInfo;
import org.apache.ibatis.annotations.Param;

public interface ClazzMapper {
    long countByExample(ClazzExample example);

    int deleteByExample(ClazzExample example);

    int deleteByPrimaryKey(String cno);

    int insert(Clazz record);

    int insertSelective(Clazz record);


    List<Clazz> getClazzsByPage(Map map);


    List<Clazz> selectByExample(ClazzExample example);

    Clazz selectByPrimaryKey(String cno);

    Clazz getClazzByIdWithStudents(String cno);

    Clazz selectByCnoWithTeacher(String cno);



    int updateByExampleSelective(@Param("record") Clazz record, @Param("example") ClazzExample example);

    int updateByExample(@Param("record") Clazz record, @Param("example") ClazzExample example);

    int updateByPrimaryKeySelective(Clazz record);

    int updateByPrimaryKey(Clazz record);
}